package com.the_ring.behavior.media;

/**
 * @author: t22306139
 * @date: 2023/12/1  15:23
 */
public abstract class Person {

    private String name;
    private Mediator mediator;

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Mediator getMediator() {
        return mediator;
    }

    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }

    /**
     * 发布信息抽象接口，具体的实现有继承的具体同时声明
     */
    public abstract void publishMessage(String msg);
}
